﻿#include "MqttInfoEntity.h"

MqttInfoEntity::MqttInfoEntity(QObject *parent) : QObject(parent)
{
	m_name = "";
	m_host = "";
	m_clientId = "";
	m_userName = "";
	m_password = "";
}

MqttInfoEntity::MqttInfoEntity(const MqttInfoEntity &other)
{
	m_id = other.m_id;
	m_name = other.m_name;
	m_host = other.m_host;
	m_clientId = other.m_clientId;
	m_userName = other.m_userName;
	m_password = other.m_password;
}

MqttInfoEntity &MqttInfoEntity::operator=(const MqttInfoEntity &other)
{
	if (this == &other)
	{
		return *this;
	}
	m_id = other.m_id;
	m_name = other.m_name;
	m_host = other.m_host;
	m_clientId = other.m_clientId;
	m_userName = other.m_userName;
	m_password = other.m_password;
	return *this;
}
